package com.cci.kangdao.fieldService.dao;

import com.cci.kangdao.fieldService.model.FieldServiceTemplateParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FieldServiceTemplateParamDao {
    int deleteByPrimaryKey(Long id);

    int insert(FieldServiceTemplateParam record);

    int insertSelective(FieldServiceTemplateParam record);

    FieldServiceTemplateParam selectByPrimaryKey(Long id);

    List<FieldServiceTemplateParam> selectListBySectionId(Long sectionId);

    List<FieldServiceTemplateParam> selectListByTemplateId(Long templateId);

    FieldServiceTemplateParam selectCDSParamKey(@Param("templateId") Long templateId, @Param("paramType") String paramType);

    List<FieldServiceTemplateParam> selectRequiredParamListByTemplateId(Long templateId);

    FieldServiceTemplateParam selectBySectionAndKey(@Param("sectionId") Long sectionId, @Param("paramKey") String paramKey);

    int updateByPrimaryKeySelective(FieldServiceTemplateParam record);

    int updateByPrimaryKey(FieldServiceTemplateParam record);
}